package com.szms.mobile.annotations;

import com.szms.mobile.common.CommonConverter;
import com.szms.mobile.enums.ColumnType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Column {
    /**
     * 列值
     * @return
     */
    String value();

    /**
     * 列类型
     * @return
     */
    ColumnType columnType() default ColumnType.Text;

    boolean primaryKey() default false;

    boolean autoIncrement() default  false;

    Class converterType() default CommonConverter.class;
}
